package com.qfjg.webcore.common;

import java.io.PrintWriter;
import java.io.StringWriter;

public class ExceptionUtils {
    public static  String getException(Throwable ex){
        StringWriter sw = new StringWriter();
        PrintWriter pw = new PrintWriter(sw, true);
        ex.printStackTrace(pw);
        return  sw.getBuffer().toString();
    }
}
